package com.smart.controller.sys;

import java.util.List;
import com.smart.util.Messages;
import javax.annotation.Resource;
import io.swagger.annotations.Api;
import com.smart.entity.SysDictDetail;
import io.swagger.annotations.ApiOperation;
import com.smart.controller.BaseController;
import com.smart.service.SysDictDetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lgb
 * @date 2020年6月11日 上午11:35:50
 * Copyright (C) 深圳工勘科技
 * @说明: 数据字典详情详情详情
 **/
@Api(tags="Sys-dict => 字典详情管理")
@RestController
@RequestMapping("sys/dict/detail")
public class SysDictDetailController extends BaseController{

	@Resource
    private SysDictDetailService sysDictDetailService;

    @ApiOperation("list => 全局 根据字典详情类型查询字典详情数据信息")
    @GetMapping(value="/dictType/{dictType}")
    public Messages<List<SysDictDetail>> dictType(@PathVariable String dictType){
        return Messages.success(sysDictDetailService.selectDictDataByType(dictType));
    }
	
}